package com.yu.serialize;

import com.yu.annotation.SPI;

/**
 * @PackageName: com.yu.serialize
 * @Description: 序列化接口
 * @Version: v1.0.0
 * @Author: yuweilin
 * @Date: 11:51
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ------------------------------------------------------------
 * 2021/1/28      yuweilin         v1.0.0               新建
 */
@SPI
public interface Serializer {
    byte[] serialize(Object obj);

    <T> T deserialize(byte[] bytes,Class<T> clazz);
}
